package com.yinile.zc03.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.yinile.zc03.domain.Author;

public interface AuthorRepository extends JpaRepository<Author, String>,
		JpaSpecificationExecutor<Author> {
	Page<Author> findByName(String name, Pageable pageable);
	Page<Author> findByNameAndAddress(String name, String address, Pageable pageable);

}
